﻿using System;
/*
    Write an expression that checks for given point (x, y) if it is within the circle K({1, 1}, 1.5) 
    and out of the rectangle R(top=1, left=-1, width=6, height=2).
 */
class PointInsideCircleOutsideRectangle
{
    static void Main()
    {
        Console.Write("Enter X: ");
        double pointX = double.Parse(Console.ReadLine());
        Console.Write("Enter Y:");
        double pointY = double.Parse(Console.ReadLine());

        bool inCircle = ((pointX <= 2) && (pointX >= -2)) && ((pointY <= 2) && (pointY >= -2));
        bool WithinRectangle = ((pointX >= -1) && (pointX <= 5)) && ((pointY >= -1) && (pointY <= 1));

        if (inCircle)
        {
            Console.WriteLine("The point is in Circle");
        }
        else
        {
            Console.WriteLine("The point in not in Cirlce");
        }
        if (WithinRectangle)
        {
            Console.WriteLine("...and within Rectangle");
        }
        else
        {
            Console.WriteLine("...and out of Rectangle");
        }

    }
}
